CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.spmi_aviation_car_delivery_fee(
id                                                 bigint                         COMMENT '主键ID',
template_id                                        bigint                         COMMENT '操作模板ID',
bill_type                                          smallint                       COMMENT '账单类型 1.发货 2提货',
supplier_id                                        String                         COMMENT '供应商',
supplier_code                                      String                         COMMENT '供应商编码',
supplier_name                                      String                         COMMENT '供应商名称',
article_type                                       smallint                       COMMENT '货物类型 1生鲜 2普货 3普货+生鲜',
van                                                Double                         COMMENT '面包车',
jinbei_car                                         Double                         COMMENT '金杯车',
car_one                                            Double                         COMMENT '4.2M',
car_two                                            Double                         COMMENT '6.8M',
car_three                                          Double                         COMMENT '7.6M',
car_four                                           Double                         COMMENT '9.6M',
car_five                                           Double                         COMMENT '12.5M',
car_six                                            Double                         COMMENT '13.5M',
car_seven                                          Double                         COMMENT '15.5M',
car_eight                                          Double                         COMMENT '16.5M',
car_nine                                           Double                         COMMENT '17.5M',
car_ten                                            Double                         COMMENT '依维柯',
other_car                                          Double                         COMMENT '其他',
is_verify                                          smallint                       COMMENT '审核标识1:已审核2:未审核',
is_enable                                          smallint                       COMMENT '是否启用1:启用 2:禁用',
is_delete                                          smallint                       COMMENT '是否删除',
create_by                                          bigint                         COMMENT '创建人ID',
update_by                                          bigint                         COMMENT '最后更新人ID',
create_by_name                                     String                         COMMENT '创建人名称',
update_by_name                                     String                         COMMENT '最后修改人名称',
create_time                                        timestamp                      COMMENT '创建时间',
update_time                                        timestamp                      COMMENT '更新时间',
version                                            String                         COMMENT '版本号',
sort                                               smallint                       COMMENT '排序'
)
COMMENT '专车提货费明细'
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET
LOCATION '/dw/hive/spmi_ods.db/external/spmi_aviation_car_delivery_fee'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
);